package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.Period;
import com.xinhua.repository.PeriodRep;

@Component
public class PeriodService {
	@Autowired
	private PeriodRep periodRep;
	
	public List<Period> getPeriod(){
		return (List<Period>) periodRep.findAll();
	}
}
